package org.glutenberg.dao;

import org.glutenberg.util.Comparable;

public class IndexRecord implements Comparable {
	private int index;
	private boolean isListIndex = false;
	
	public IndexRecord(long index){
		this.index = (int)index;
	}

	public boolean isListIndex() {
		return isListIndex;
	}

	public void setListIndex(boolean isListIndex) {
		this.isListIndex = isListIndex;
	}

	public long getIndex() {
		return index;
	}

	public int compareTo(Object o) {
		IndexRecord r = (IndexRecord)o;
		if(this.index>r.index) return 1;
		else if(this.index==r.index) return 0;
		else return -1;
	}

}
